<template>
  <div>
    <h3>新闻详细</h3>
    <h4>{{name}}新闻</h4>
  </div>
</template>

<script>
export default {
    name:"NewsDetail",
    mounted(){
        console.log(this);
    },
    computed:{
        name(){
            return this.$route.query.name;
        }
    }
}
</script>

<style>

</style>